/**
 * 构造前10个素数的表
 * 
 * @author zk
 */
public class Primes {

	public static void main(String[] args) {

		int[] primes = new int[10];
		primes[0] = 2;
		int cnt = 1;
		UI: for (int x = 3; cnt < primes.length; x++) {
			for (int i = 0; i < cnt; i++) {
				if (x % primes[i] == 0) {
					continue UI;
				}
			}
			primes[cnt++] = x;
		}

		for (int k : primes) {
			System.out.print(k + " ");
		}
		System.out.println();
	}
}
